<template>
  <!-- 步骤条 -->
  <div class="mysteps">
    <div :class="active == 1 ? 'isthis':'wait'">1 填写基本信息<div class="nextright"></div></div>
    <div :class="active == 2 ? 'isthis':'wait'">2 填写内容<div class="nextright"></div></div>
  </div>
</template>

<script>
export default {
  props: {
    active: {
      default: 1
    }
  }
}
</script>

<style lang="scss" scoped>
.mysteps {
  display: flex;
  background: #fff;
  overflow: hidden;
  div {
    width: 300px;
    height: 60px;
    box-sizing: border-box;
    text-align: center;
    line-height: 60px;
    position: relative;
    .nextright {
      position: absolute;
      top: 0;
      bottom: 0;
      right: -60px;
      z-index: 1;
      width: 0;
      height: 0;
      border: 30px solid transparent;
    }
  }
  .isthis {
    color: #fff;
    background: #4285F4;
    .nextright {
      border-left-color: #4285F4;
    }
  }
  .wait {
    color: #333;
    background: #E4ECEF;
    .nextright {
      border-left-color: #E4ECEF;
    }
  }
}
</style>
